﻿using Sidvall.IO;
using System.Threading;
using System.Threading.Tasks;

namespace Sidvall.Web.IO
{
    public class FileManagerStrategyBase : IFileManagerStrategy
    {
        public virtual Task OnAfterFlushAsync(Store store, Sidvall.Web.IO.Data.OpenFileContext context, CancellationToken cancellationToken)
        {
            return Task.FromResult(true);
        }
        public virtual Task OnAfterOpenFileAsync(Store store, Sidvall.Web.IO.Data.OpenFileContext context, FileMode mode, FileAccess access, CancellationToken cancellationToken)
        {
            return Task.FromResult(true);
        }
        public virtual Task OnBeforeFlushAsync(Store store, Sidvall.Web.IO.Data.OpenFileContext context, CancellationToken cancellationToken)
        {
            return Task.FromResult(true);
        }
        public virtual Task OnBeforeOpenFileAsync(Store store, Sidvall.Web.IO.Data.OpenFileContext context, FileMode mode, FileAccess access, CancellationToken cancellationToken)
        {
            return Task.FromResult(true);
        }
    }
}
